import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/register',
    name: 'register',
    component: () => import('@/views/register/register'),
    meta: {
      title: '注册'
    }
  },
  {
    path: '/download/:brandId',
    name: 'download',
    component: () => import('@/views/register/download'),
    meta: {
      title: '下载'
    }
  },
  {
    path: '/agreement',
    name: 'agreement',
    component: () => import('@/views/user/agreement'),
    meta: {
      title: '用户协议'
    }
  },
  {
    path: '/privacy',
    name: 'privacy',
    component: () => import('@/views/user/privacy'),
    meta: {
      title: '用户隐私协议'
    }
  },
  {
    path: '/userPrivacy',
    name: 'userPrivacy',
    component: () => import('@/views/user/userPrivacy'),
    meta: {
      title: '用户隐私协议'
    }
  },
  {
    path: '/searchAgr',
    name: 'searchAgr',
    component: () => import('@/views/user/searchAgr'),
    meta: {
      title: '用户使用协议'
    }
  },
  {
    path: '/appinfoImg',
    name: 'appinfoImg',
    component: () => import('@/views/appinfoImg'),
    meta: {
    }
  },
  {
    path: '/paySuccess',
    name: 'paySuccess',
    component: () => import('@/views/payBack/success'),
    meta: {
      title: '支付成功'
    }
  },
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
